{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}

{% block title %}万屏时代OPC--微信标签列表{% endblock %}

{% block panel_heading %}
  万屏时代OPC--微信标签列表
    <div class="pull-right btn-group">
        <a href="{{ url_for('opc_wechat_bp.wechat_tags_pull') }}" class="btn btn-xs btn-success" style="margin-right: 5px;">
            拉取标签
        </a>
    </div>
{% endblock %}

{% block panel_body %}

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'opc_wechat_bp.wechat_tags_list') }}
    </div>
    {% endif %}

    <table id="wechat_tag_table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>tag_id</th>
                <th>tag_name</th>
                <th>用户数</th>
            </tr>
        </thead>
        <tbody>
            {% for tag in wechat_tags %}
            <tr>
                <td>{{ tag.id }}</td>
                <td>{{ tag.tag_id }}</td>
                <td>{{ tag.tag_name }}</td>
                <td>{{ tag.user_count }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'opc_wechat_bp.wechat_tags_list') }}
    </div>
    {% endif %}
{% endblock %}

